package com.tensquare.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zzb
 * @create 2020/12/14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {
    private boolean flag;//是否成功
    private Integer code;//返回码
    private String message;//返回信息
    private Object data;//返回数据

    //用于增删改
    public Result(boolean flag,Integer code,String message){
        this.flag = flag;
        this.code = code;
        this.message = message;
    }
}
